package com.szzg10.thinking.chapter11;

import java.util.HashSet;
import java.util.Random;

public class SetOfInteger {

	public static void main(String[] args) {
		Random random = new Random(47);
		
		HashSet<Integer> hashSet = new HashSet<Integer>();
		for(int i = 0; i < 10000; i++) {
			hashSet.add(random.nextInt(30));
		}
		
		System.out.println(hashSet);
	}
}
